<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link href="/module/bootstrap-table/bootstrap-table.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px 0px">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11"
                        style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class="active"><a href="/app/core/exam/examquestionsrecord" aria-expanded="true">试卷管理 </a>
                        </li>
                        <li class=""><a href="/app/core/exam/examquestionsrecord?view=create"
                                        aria-expanded="false">创建试卷</a></li>
                    </ul>
                    <div class="tab-content tabs-flat" style="padding: 0px;">
                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12" id="listdiv">
                                <table id="myTable"></table>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-12 col-sm-12 col-xs-12" id="infodiv" style="display: none;">
                        <div class="row">
                            <div class="col-md-offset-2 col-md-8 col-sm-12 col-xs-12" style="padding: 0px">
                                <form class="form-horizontal" id="form1">
                                    <table class="table table-hover table-striped table-bordered">
                                        <tr>
                                            <td width="20%">${i18n('system.sortNo')}：</td>
                                            <td width="30%"><input placeholder="${i18n('system.sortNo')}" type="number" name="sortNo"
                                                                   id="sortNo"
                                                                   maxlength="50" value="" class="form-control"></td>
                                            <td width="20%">试卷名称：</td>
                                            <td width="30%"><input placeholder="试卷名称" type="text" name="title"
                                                                   id="title"
                                                                   class="form-control" maxlength="150"></td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">试题列表 <a href="javascript:void(0);"
                                                                    class="btn btn-sky btn-xs js-questions-item"
                                                                    style="float: right;">添加试题</a></td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <table class="table table-hover table-striped table-bordered">
                                                    <tbody id="questionlist">
                                                    <tr>
                                                        <td>序号</td>
                                                        <td>类型</td>
                                                        <td>题干</td>
                                                        <td>题支</td>
                                                        <td>操作</td>
                                                    </tr>
                                                    </tbody>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">备注</td>
                                        </tr>
                                        <tr>
                                            <td colspan="4">
                                                <div id="remark" name="remark" style="height: 300px"></div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="4" align="center">
                                                <a id="createbut" href="javascript:void(0);"
                                                   class="btn btn-primary js-update-save">更&nbsp;&nbsp;新</a>
                                                <a href="javascript:void(0);" class="btn btn-purple js-back-btn"
                                                   style="margin-left: 20px;">返&nbsp;&nbsp;回</a>
                                            </td>
                                        </tr>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-lg" id="questionsModal" tabindex="-1" role="dialog"
     aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">试题选择</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form1">
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">试题分类：</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control" id="sortId" name="sortId" placeholder="试题分类"
                                   readonly="readonly">
                            <div id="menuContent" class="menuContent">
                                <ul id="menuTree" class="ztree"></ul>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">选择试题：</label>
                        <div class="col-sm-9">
                            <select id="questionId" name="questionId" class="form-control"></select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div id="questionTitle" style="line-height: 34px;font-size: 14px;font-weight: 600;"></div>
                        <div id="content">
                            <table class="table table-hover table-striped table-bordered" id="child-item-table"></table>
                        </div>
                    </div>
                </form>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary add-question">${i18n('ok')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
</div>
<div id="orgselectdiv"></div>
<div id="attachselect"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table.js"></script>
<script type="text/javascript" src="/module/bootstrap-table/bootstrap-table-${localeLangCountry()}.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/module/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="/module/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/exam/examquestionsrecordmanage.js"></script>
</body>
</html>
